package com.ylx.service;

import com.ylx.pojo.Goods;
import com.ylx.pojo.Order;
import com.ylx.pojo.OrderItem;

import java.util.List;

public interface OrderService {

    int add (Order order);

    void update (Order order);

    Order selectByOid (String oid);


    void updateOrderState (String oid);

    Order getOrderByOid (String oid);

    List<Order> getOrderByUid ( String uid,String birthYear,String birthMonth);

   void addOrderItem (OrderItem or);

    List<OrderItem> selectOrderItemOid (String oid);

    List<OrderItem> selectOrderItemOid1 ();
    Goods getProductsById (String id);

    List<Order> getAllOrderList();


    int deleteOrder(String oid);

    int deleteOrderItem (String oid);

    List<Goods> getMenu();

    List<Goods> getLisiMenu();

    List<Order> selectUser(String NAME);




    List<OrderItem> selectOrderitem();
}
